package com.lulin.mall.product.fegin;

import com.lulin.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lulin
 * @date 2023/1/13 10:55
 */
@FeignClient("mall-seckill")
public interface SeckillFeginService {

    /**
     * 根据skuId，查询秒杀活动对应的商品信息
     *
     * @param skuId sku商品编号
     */
    @GetMapping("/seckill/getSeckillSessionBySkuId/{skuId}")
    public R getCurrentSeckillSkus(@PathVariable("skuId") Long skuId);
}
